{include file=member.header.html}
<script type="text/javascript">
function submitDdata()
{
	var content = $('#content').val();
	var act = '{$smarty.get.act}';
	var ques_id= '{$smarty.get.ques_id}';
	if(content == "")
	{
		errormsg('{$lang.content_not_null}');
	}
	else
	{
		if(strLength(content) >= 255)
		{
			errormsg('{$lang.max_script}');
		}
		else
		{
			var url = REAL_SITE_URL+"/index.php?app=my_qa&act={$smarty.get.act}&ques_id={$smarty.get.ques_id}";
			$.post(url,{content:content,act:act,ques_id:ques_id},function(data){
				if(data == true){
					msg("{$lang.handle_ok}");
					setTimeout(function(){
						window.location.href=REAL_SITE_URL+"/index.php?app=my_qa";
					},1500);
				}  
			},"json");
		}
	}
}
</script>
<div id="page-my-qa">
		<ul class="padding10 reply">
            <li>
                <p class="mt5"><textarea class="text width11" id="content" name="content">{$my_qa_data.reply_content}</textarea><br /></p>
            </li>
        </ul>
        <div style="padding-top:0px;" class="reply-btn-box padding10"><input type="button" onclick="submitDdata();" class="btn" value="{$lang.confirm}" /></div>
</div>